package com.atguigu.mr.order;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * @description: xxx
 * @time: 20191228 22:14
 * @author: baojinlong
 **/
public class OrderReducer extends Reducer<OrderBean, NullWritable, OrderBean, NullWritable> {
    @Override
    protected void reduce(OrderBean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        // 求出每一个订单中最贵的商品
        context.write(key, NullWritable.get());
        //按照前三排序
//        for (NullWritable value : values) {
//            context.write(key, NullWritable.get());
//        }
    }
}
